#!/bin/bash
lftp $1:$2@$3 <<EOF
mirror -R $4 $5;
quit
EOF